function onEdit()
     {
    	 for(var i=1;i<10;i++){
    		 var s = document.getElementById(i);
    		 s.disabled="";
    	 }
    	 document.getElementById("smallBitch").type="button";
     } 

function onAlert(){
	 var isNull = false;
	 for(var i=1;i<9;i++){
		 var s = document.getElementById(i);
		 if(s.value==""){
			 isNull = true;
		 }
	 }
	 if(isNull==true){
		 alert("请完善信息！");
	 }else{
		 with(document.forms['myForm']){
			 action="charaInfoEdit";
		 }
		 document.getElementById("smallBitch").type="submit";
		 
	 }
}
 
function onDelete(){
	 with(document.forms['myForm']){
		 var msg = confirm("确认删除吗？");
		 if(msg==true){
		 	action="charaInfoDelete";
	 	 }
	 }
	 
}